﻿
package system.base;

import framework.core.*;

/*
	Author    :justin
	CreateTime:2008-01-03 16:28:33
*/
public class UserSearchEvent extends SearchEvent
{

	private String m_id = "" ; // all

	private String m_code = "" ; // all

	private String m_password = "" ; // all

	private String m_warehouse_code = "" ; // all

	private String m_warehouse_name = "" ; // all

	private String m_name = "" ; // all

	private String m_tel = "" ; // all

	private String m_mobile_phone = "" ; // all

	private String m_remark = "" ; // all

	private String m_status = "" ; // all
		

public UserSearchEvent() 
{
	super();
	
	setOrderField(User.CODE);
		
}



	public String getId()
	{
		return m_id ;
	}
	public void setId(String v)
	{
		m_id = v;
	}

	public String getCode()
	{
		return m_code ;
	}
	public void setCode(String v)
	{
		m_code = v;
	}

	public String getPassword()
	{
		return m_password ;
	}
	public void setPassword(String v)
	{
		m_password = v;
	}

	public String getWarehouseCode()
	{
		return m_warehouse_code ;
	}
	public void setWarehouseCode(String v)
	{
		m_warehouse_code = v;
	}

	public String getWarehouseName()
	{
		return m_warehouse_name ;
	}
	public void setWarehouseName(String v)
	{
		m_warehouse_name = v;
	}

	public String getName()
	{
		return m_name ;
	}
	public void setName(String v)
	{
		m_name = v;
	}

	public String getTel()
	{
		return m_tel ;
	}
	public void setTel(String v)
	{
		m_tel = v;
	}

	public String getMobilePhone()
	{
		return m_mobile_phone ;
	}
	public void setMobilePhone(String v)
	{
		m_mobile_phone = v;
	}

	public String getRemark()
	{
		return m_remark ;
	}
	public void setRemark(String v)
	{
		m_remark = v;
	}

	public String getStatus()
	{
		return m_status ;
	}
	public void setStatus(String v)
	{
		m_status = v;
	}
		



	public String viewId() throws Exception
	{
		return Value.view(getId());
	}

	public String viewCode() throws Exception
	{
		return Value.view(getCode());
	}

	public String viewPassword() throws Exception
	{
		return Value.view(getPassword());
	}

	public String viewWarehouseCode() throws Exception
	{
		return Value.view(getWarehouseCode());
	}

	public String viewWarehouseName() throws Exception
	{
		return Value.view(getWarehouseName());
	}

	public String viewName() throws Exception
	{
		return Value.view(getName());
	}

	public String viewTel() throws Exception
	{
		return Value.view(getTel());
	}

	public String viewMobilePhone() throws Exception
	{
		return Value.view(getMobilePhone());
	}

	public String viewRemark() throws Exception
	{
		return Value.view(getRemark());
	}

	public String viewStatus() throws Exception
	{
		return Value.view(getStatus());
	}


	public Conditions toConditions() throws Exception
	{
		Conditions c = super.toConditions();

	c.add(getCondition(User.ID,getId()));

	c.add(getCondition(User.CODE,getCode()));

	c.add(getCondition(User.PASSWORD,getPassword()));

	c.add(getCondition(User.WAREHOUSE_CODE,getWarehouseCode()));

	c.add(getCondition(User.WAREHOUSE_NAME,getWarehouseName()));

	c.add(getCondition(User.NAME,getName()));

	c.add(getCondition(User.TEL,getTel()));

	c.add(getCondition(User.MOBILE_PHONE,getMobilePhone()));

	c.add(getCondition(User.REMARK,getRemark()));

	c.add(getCondition(User.STATUS,getStatus()));
		

			
		return c ;
	}
	
//add by justin start

//add by justin end
}
